package com.sptpc.learnspring.controller.request;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.joda.money.Money;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 参数校验案例需要添加spring-boot-starter-validation依赖
 */
@Getter
@Setter
@ToString
public class NewDrinkRequest {
    @NotBlank
    public String name;
    @NotNull
    public Money price;
}
